package opseration;

import book.Book1;
import book.BookList;

public class Delopseration implements IOpersation{
    public void work(BookList bookList) {
        System.out.println("删除图书！");
        System.out.println("请输入你要删除图书的名字：");
        String name = scanner.nextLine();
        int index = 0;
        int i = 0;
        for (; i < currentSize; i++){
            Book1 book1 = bookList.getPos(i);
            if (book1.getName() .equals(name)){
                index =  i;
                break;
            }
        }
    }
}
